<?php
    $this->headTitle($this->site_name.' - Networks');
?>
<?php if (!empty($this->success_msg)):?>
<div class="response-msg success ui-corner-all"><?php echo $this->success_msg;?></div>
<?php endif ?>

<?php if (!empty($this->error_msg)):?>
<div class="response-msg error ui-corner-all"><?php echo $this->error_msg;?></div>
<?php endif ?>

<div id="dashboard">

<h2>Networks</h2>
 
        <div style="text-align:left">
        
				<?php 
					if (isset($this->networks)and(count($this->networks)>0)){
						
						echo '<div style="margin:16px 0;"><div class=left style="width:100px;margin-left:20px;">Network id: </div><div class=left style="width:200px;margin-left:20px;">Domain: </div></div>';
						echo '<div class=clearfix></div>';
						 
						foreach($this->networks as $key => $value){
						  	echo '<div style="margin:16px 0;"><div class=left style="width:100px;margin-left:20px;">'.$value['networkid'].'</div><div class=left style="width:200px;margin-left:20px;">'.$value['domain'].'</div><div class=left><a href="/client/networks/to-network/nid/'.$value['networkid'].'/cid/'.$this->client_id.'";\' class="btn"><span class="ui-title">Access</span></a></div></div>';
						  	echo '<div class=clearfix></div>'; 
						}
					}else{
						echo "No networks.";
					}
				?>

        </div>
</div>


